package com.yztstudy.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yztstudy.entity.Order;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单返回的数据实体
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderVo extends Order {

    @JsonProperty("product_name")
    private String productName; // 商品名称

    @JsonProperty("product_picture")
    private String productPicture; // 商品图片
}
